package com.abou.utils.hibernate.dialect;

import org.hibernate.dialect.MySQL5InnoDBDialect;

/**
 * The class used to define the dialect (it is actually used to set the
 * characters encoding for the tables) for hibernate.
 * 
 */
public class MySql5InnoDbUtf8Dialect extends MySQL5InnoDBDialect {
  
  /**
   * The empty constructor
   */
  public MySql5InnoDbUtf8Dialect() {

    super();
  }
  
  /** @see org.hibernate.dialect.MySQL5InnoDBDialect#getTableTypeString()
   */
  @Override
  public String getTableTypeString() {

    return " ENGINE=InnoDB DEFAULT CHARSET=utf8";
  }
}
